<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>

</style>
<script>
  window.onload = function () {

  }
  //鼠标右键
  document.oncontextmenu = function () {
    //阻止默认事件
    return false

  }

</script>

<body>

</body>

</html>